﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TESTING_APP
{
    public partial class Scanningform : Form
    {
        public Scanningform()
        {
            InitializeComponent();
            imagingForWindows1.OPEN_FILE(@"D:\FEWA PUBLISH\W1\000001.tiff");
            //axImgEdit1.FitTo();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_FIT_TO_VIEW(ImagingController.ImagingForWindows.FitTo.BEST_FIT);
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_FIT_TO_VIEW(ImagingController.ImagingForWindows.FitTo.FIT_TO_HEIGHT);
        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_FIT_TO_VIEW(ImagingController.ImagingForWindows.FitTo.FIT_TO_WIDTH);
        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_FIT_TO_VIEW(ImagingController.ImagingForWindows.FitTo.INCH_TO_INCH);
        }

        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_ZOOM_OPTION(ImagingController.ImagingForWindows.ZoomOptions.ZoomIn, 0);
        }

        private void toolStripButton6_Click(object sender, EventArgs e)
        {

            imagingForWindows1.SET_ZOOM_OPTION(ImagingController.ImagingForWindows.ZoomOptions.ZoomOut, 0);
        }

        private void toolStripSplitButton1_ButtonClick(object sender, EventArgs e)
        {

        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {

            imagingForWindows1.SET_ZOOM_OPTION(ImagingController.ImagingForWindows.ZoomOptions.Custom, 25);
        }

        private void toolStripMenuItem3_Click(object sender, EventArgs e)
        {

            imagingForWindows1.SET_ZOOM_OPTION(ImagingController.ImagingForWindows.ZoomOptions.Custom, 50);
        }

        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            imagingForWindows1.GET_IMAGE_OCR();
        }

        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_CURRENT_ANNOTATION_TOOL(ImagingController.ImagingForWindows.ToolSettings.SELECT_ANNOTATIONS);
        }

        private void toolStripButton9_Click(object sender, EventArgs e)
        {
            //imagingForWindows1.CROP_SELECTED_REGION();
        }

        private void toolStripButton10_Click(object sender, EventArgs e)
        {
            imagingForWindows1.SET_CURRENT_ANNOTATION_TOOL(ImagingController.ImagingForWindows.ToolSettings.DESQUE_PAGE);
        }
    }
}
